﻿/* 
 * Godtear.com
 * QQ:bzure@189.cn
 *Author:Nathan Liu
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bzure.Security.Permissions
{
    [Serializable ]
    public class AccessCode : IAccessCode
    {
        private int _accessCode;
        public int CodeValue
        {
            get { return _accessCode; }
        }
        public AccessCode(int codeValue)
        {
            _accessCode = codeValue;
        }
        public IAccessCode Copy()
        {
            return new AccessCode(this.CodeValue);
        }
    }
    public class AccessCode<T> : IAccessCode<T>
    {
        private T _accessCode;
        public T CodeValue
        {
            get { return _accessCode; }
        }
        public AccessCode(T codeValue)
        {
            _accessCode = codeValue;
        }
        public IAccessCode<T> Copy()
        {
            return new AccessCode<T>(this.CodeValue);
        }
    }
}
